package com.example.tests;

import com.example.TestBase;
import org.junit.*;

/**
 * Создание нового видео
 */
public class CreateVideo extends TestBase {

    @Test
    public void testCreateVideo() throws Exception {
        goToMainPage()
            .loginWithValidCredentials("admin", "admin")
            .gotoHomePage()
            .addNewMovie()
            .sendAddForm("1", "New Film", "New film in My collection", "2012", "135", "10", "All Languages")
            .whatMoviePageOpen("New Film (2012)")
            .gotoHomePage()
            .logout();
    }
}
